<template>
  <a-tooltip :placement="placement" :title="tipTitle" :getPopupContainer="getPopupContainer">
    <i class="iconfont icon-wenhao-xianxingyuankuang"></i>
  </a-tooltip>
</template>
<script>
export default {
  props: {
    tipTitle: {
      type: String,
      default: ''
    },
    placement: {
      type: String,
      default: 'top'
    },
    popupContainer: {
      type: [Function, Object],
      default () {
        return null
      }
    }
  },
  data () {
    return {

    }
  },
  methods: {
    getPopupContainer (node) {
      return this.popupContainer(node) ? this.popupContainer(node) : node.parentNode
    }
  }
}
</script>
